<?php

class Backend_Form_AdminAdd extends Zend_Form
{

    public function init()
    {
        $this->setName("frmAddAdmin");

        $elements = new Application_Form_Elements();
        $this->addElements(array(
            $elements->hiddenId(),
            $elements->formName(),
            $elements->formEmail(),
            $elements->formPassword(),
            $elements->formPassword("Confirm Password", 20, "confirm")
                ->addValidator("identical",true,array('token'=>'password'))
                ->addErrorMessages(array("identical"=>"Confirm password must be the same with password")),
            /*$elements->formRole(),*/
            $elements->formContact(),
            $elements->formSubmit(),
            $elements->formReset()
        ));
    }
}

